package com.ndp.fb.walle.business;

import com.ndp.fb.rdb.model.Pager;
import com.ndp.fb.rdb.model.rulescript.RuleScript;
import com.ndp.fb.walle.model.vo.rulescript.param.RuleScriptVoParam;
import com.ndp.fb.walle.model.vo.rulescript.result.ScriptRunVoResult;

import java.util.List;

/**
 * Created by sisi.chen on 15-6-25.
 */
public interface RuleScriptService {
    List<ScriptRunVoResult> test(String userId, RuleScriptVoParam ruleScriptVoParam, String timezoneId, String userid);

    Long save(String ticket, RuleScript ruleScript);

    Pager<RuleScript> list(String userId, Integer cPage, Integer pSize);

    Object detail(String userId, Long id);

    Object listSnapData(RuleScriptVoParam ruleScriptVoParam);

    String exportData(RuleScriptVoParam ruleScriptVoParam,String userid);

    void reCompile(Long rulescriptId);

    void reRunLastSnap(Long rulescriptId);
}
